# -*- coding: utf-8 -*-

__author__ = 'bilibili'

import json
from spot_returner import spot_returner

def main():
    spot_returner.get_instance().initialize('AM_Report.config.json')
    print spot_returner.get_instance().calculate('FY14 YTD Revenue', 'PM1 Attainment %', 'Canada')
    print spot_returner.get_instance().calculate('FY14 YTD Bookings', 'PM3 Attainment %')
    print spot_returner.get_instance().calculate('FY14 Q2 Funnel - Q2 Booking Date', 'Booked & Commit Coverage')

if __name__ == '__main__':
    main()